#ifndef NET_CLIENT_H_
#define NET_CLIENT_H_

#include "kernelTask.h"
#include "GCPtr.h"
#include "NetworkData.h"
#include "XMLSettings.h"
#include <SDL_net.h>
#include <vector>

class NetClient : public IKernelTask
{
public:
	~NetClient();

	static GCPtr<NetClient> getInstance();

	bool Start();
	void Stop();
	void Update();

	void queuePacket(CoordPacket packet);

private:
	NetClient( void );
	NetClient( NetClient const& );
	NetClient& operator=( NetClient const& );

	TCPsocket sd;
	IPaddress ip;

	vector<CoordPacket> vPacketQueue;
};

#endif